Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Glassfish Interview Questions and Answers

Question: How to Deploy and Undeploy Applications by Using the Administration Console?
Answer:
The graphical Administration Console of GlassFish Server enables you to perform the following deployment-related tasks:

To Deploy the Sample Application by Using the Administration Console
The sample application must be available before you start this task. At least one GlassFish Server domain must
be started before you deploy the sample application.
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
The Applications page is displayed.
3) Click the Deploy button.
The Deploy Applications or Modules page is displayed.
4) Select Packaged File to be Uploaded to the Server, and click Browse.
5) Navigate to the location in which you saved thehello.warsample, select the file, and click
Open.
You are returned to the Deploy Applications or Modules page.
6) Specify a description in the Description field, for example: hello
7) Accept the other default settings, and click OK.
You are returned to the Applications page.
8) Select the check box next to thehelloapplication and click the Launch link to run the
application.
The default URL for the application is as follows:
http://localhost:8080/hello/

To View Deployed Applications in the Administration Console
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
Expand the node to list deployed applications. Deployed applications are also listed in the table on the Applications page.

To Undeploy the Sample Application by Using the Administration Console
1) Launch the Administration Console by typing the following URL in your browser:
http://localhost:4848
2) Click the Applications node in the tree on the left.
The Applications page is displayed.
3) Select the check box next to thehellosample application.
4) Remove or disable the application.
■ To remove the application, click the Undeploy button.
■ To disable the application, click the Disable button.
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook